package com.firebird.app.fekpsl.mvp.me

import com.firebird.app.fekpsl.base.BasePresenter
import com.firebird.app.fekpsl.ext.ss

/**
 * Created by chenxz on 2018/6/3.
 */
class BindPhonePresenter : BasePresenter<BindPhoneContract.Model, BindPhoneContract.View>(), BindPhoneContract.Presenter {

    override fun createModel(): BindPhoneContract.Model? = BindPhoneModel()

    override fun bindPhone(userUuid: String, bindPhone: String) {
        mModel?.bindPhone(userUuid, bindPhone)?.ss(mModel, mView) {
            mView?.bindPhoneSuccess(success = true)
        }
    }
}